# -*- coding: utf-8 -*-

"""
@author: l
@Remark: 	
	
驱动信息表
"""
from app.device.models import Driverinfo
from dvadmin.utils.serializers import CustomModelSerializer
from dvadmin.utils.viewset import CustomModelViewSet


class DriverinfoSerializer(CustomModelSerializer):
    """
    序列化器
    """

    class Meta:
        model = Driverinfo
        fields = "__all__"
        read_only_fields = ["id"]


class DriverinfoViewSet(CustomModelViewSet):
    """	
    驱动信息表接口
    list:驱动信息表查询
    create:驱动信息表新增
    update:驱动信息表修改
    retrieve:驱动信息表单例
    destroy:驱动信息表删除
    multiple_delete:驱动信息表多删
    """
    queryset = Driverinfo.objects.all()
    serializer_class = DriverinfoSerializer
    # filter_fields = ['creator_id']

    # permission_classes = []